/*
 * www.7yangche.com Inc.
 * Copyright (c) 2014 All Rights Reserved.
 */
package com.catena.core.inject;

import com.catena.core.CatenaContext;
import com.catena.core.CatenaContextImpl;

import java.util.Objects;

/**
 * @author cyzhang
 */
public class AutowiredSupportConfiguration {

    private static CatenaContext catenaContext;

    private static InjectionLoading InjectionLoading;

    public CatenaContext getCatenaContext() {
        if (Objects.isNull(catenaContext)) {
            return new CatenaContextImpl();
        }
        return catenaContext;
    }

    public InjectionLoading getInjectionLoading() {
        if (Objects.isNull(InjectionLoading)) {
            return new InjectionLoading();
        }
        return InjectionLoading;
    }

}
